/*
 * KeyStroke.java  0.4.0 / Oct 26, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.swing;

/**
 * Key Stroke.
 *
 * @author Slobodan Vrkacevic
 * @version 0.4.0
 */
public class KeyStroke {

// Package-Private Fields. -----------------------------------------------------

  String shortcut;

// Package-Private Constructors. -----------------------------------------------

  KeyStroke(String shortcut) {
    this.shortcut = shortcut;
  }

// Public Static Methods. ------------------------------------------------------

  /**
   * Returns key stroke for the specified string.
   *
   * @param s the string
   *
   * @return key stroke for the specified string
   */
  public static KeyStroke getKeyStroke(String s) {
    return new KeyStroke(s);
  }

}
